Information:
------------
This is the Zelda ALttP Room Header Expander.
Cause Hyrule Magic lacks the possibility to expand the room headers so you can connect nearly
all rooms you want, i wrote this script to manage this.
It copies the room headers to another position at the end of the rom, changes the bank which the
game uses to load the headers and changes the header pointer table.
It is not possible to patch the rom and then edit it in Hyrule Magic further. But this is no problem.
You have your actual ROM and export your actual room headers (the 5 bytes for the doors) with this program.
After this there is a new file called 'RoomHeaders.txt'. Open it with Notepad++ or a similar program (not
Windows Notepad). You will find a comment line at the beginning to see how it works.
For each room you have a line in that you can change doors/staircases/warp. I suggest you to keep it
open while editing with Hyrule Magic. After saving this you can import it. You don't need to back up
your ROM cause the program creates a new file called '_YourROMname'. The new file has all what you set
in Hyrule Magic for Effect, Tag1, Tag2 and so on and the new rooms from the file "RoomHeaders.txt".
So nothing goes lost.
The new headers are written at offset 0x1F8000 (beginning of bank 0x3F), so make sure there is no data there.

Important: Note that you can not go from the rooms 0-255 to the rooms 256-295 and vice versa.
           So for example if you write in the file that a staircase in room 256 leads to 128
           then this will be interpreted as 256 + 128 = 384 and the game will crash.
           You only need to remember that for rooms 0-255 the only valid values are 0-255
           and for rooms 256-295 the only valid values are 256-295.
           Don't care about rooms 296-319, the game will crash if you go in one of these rooms.

Problems:
---------
-If your ROM has a 0x200 Bytes header, you need to remove it, otherwise it will not work.

-You need the following ROM: "Zelda 3 (U).smc" (date of last modification: 23.08.2004).
 So your room header pointers should start at 0x27502 with the value 0x82F7.

-You need to delete whitespaces in your ROM filename.

I think i will fix the problems in the future if there is someone interested in this program.



Usage:
------
Import: 'RHE.exe ROMname'
Export: 'RHE.exe -export ROMname'

Credits:
--------
Coded by XaserLE
Thanks goes to MathOnNapkins for his Zelda documents an his personal help.